package gdt.entity;

import gdt.entity.Announcement;
import java.io.Serializable;
import javax.persistence.*;
import static javax.persistence.FetchType.LAZY;

/**
 * Entity that represents an announcement visible for
 * for all members of a group.
 */

@Entity
public class GroupAnnouncement extends Announcement implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@ManyToOne(fetch=LAZY)
	private Group group;

	public GroupAnnouncement() {
		super();
	}
  
	// ********************** Accessor Methods ********************** //
	
	public Group getGroup() {
		return this.group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}
   
}
